frame.setTitle("ThinkNet");

var thinknetChannel = new javax.swing.JComboBox();
thinknetChannel.addItem("wow");
thinknetChannel.editable = true;

var textInput = new javax.swing.JTextField(80);

var sendButton = new javax.swing.JButton("Send");
sendButton.addActionListener(function(e) {
	mq.publish(applet.getProperty("jms-channel"), "th " + thinknetChannel.selectedItem.toString() + "=" + textInput.text);
});

var sendPanel = new javax.swing.JPanel();
sendPanel.setLayout(new java.awt.BorderLayout());
sendPanel.add(textInput, java.awt.BorderLayout.CENTER);
sendPanel.add(sendButton, java.awt.BorderLayout.EAST);

var box = javax.swing.Box.createVerticalBox();
box.add(thinknetChannel);
box.add(sendPanel);

frame.add(box);
frame.pack();